﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Crank.Core
{
    static class IrregularPreprocessor
    {
        public static void Install()
        {
            Preprocessor.AddDirective("irregular", Process);
        }

        public static void Process(string[] args)
        {
            if (args.Length != 2)
                throw new Exception("Invalid Irregular Preprocessor Directive");
            // Single, Plural
            Inflector.Irregular(args[0], args[1]);

        }
    }
}
